-- GENERATED SPELL FOR [Silroth] --


function spell0_20801(pUnit, Event) --@Chemical Flames,n/a--
pUnit:FullCastSpellOnTarget(36253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20801', 10000, 1)
end

function spell1_20801(pUnit, Event) --@Felforge Flames,n/a--
pUnit:FullCastSpellOnTarget(36252,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20801', 5000, 1)
end

function Sorts_20801(pUnit, Event)
local choix_sorts_20801 = math.random(0, 1)
if choix_sorts_20801 == 0 then
pUnit:RegisterEvent('spell0_20801', 1, 1)
end
if choix_sorts_20801 == 1 then
pUnit:RegisterEvent('spell1_20801', 1, 1)
end
end

function mob20801_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20801', math.random(1500, 3000), 1)
end

function mob20801_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20801_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20801_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20801, 1, 'mob20801_Action')
RegisterUnitEvent(20801, 2, 'mob20801_Leave')
RegisterUnitEvent(20801, 3, 'mob20801_Kill')
RegisterUnitEvent(20801, 4, 'mob20801_Die')
